package com.wiloon.androidx.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * Created by wiloon on 7/25/14.
 */
@DatabaseTable(tableName = "foo")
public class Foo implements Serializable {
    public Foo() {

    }

    public static final String ID = "foo_id";
    public static final String NAME = "foo_name";

    @DatabaseField(generatedId = true, useGetSet = true, columnName = ID)
    private long id;

    @DatabaseField(useGetSet = true, columnName = NAME)
    private String name;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
